package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@TableName(value = "bs_user")
public class User implements Serializable {
    private Integer id;//主键
    private String avatar;//头像
    @TableField(value = "create_time")
    private LocalDateTime createTime;//创建时间

    private String  email;//邮箱
    private String introduction;//介绍
    @TableField(value = "last_update_time")
    private LocalDateTime lastUpdateTime;//最后修改时间
    private String password;//密码
    private String phone;//手机号码
    private Integer status;//账号状态 0为启用，1为禁用
    private String username;//用户名称
    private String  sex;//性别
    private String role;//角色
    @TableField(value = "permission_group_id")
    private Long permissionGroupId;//权限组ID

}
